<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
<c:if test="${obj == null}">
	您还没有订单，快点是挑选自己喜欢的礼品吧。
</c:if>
<c:if test="${obj != null}">
<table width="90%" align="center" border="1" bordercolor="#CCC">
	<tr align="center" height="30">
		<td>订单编号</td><td>交易时间</td><td>总价格</td><td>订单状态</td><td>订单详情</td>
	</tr>
	<c:forEach items="${obj}" var="o">
		<tr align="center" height="30">
			<td>${o.id }</td>
			<td><fmt:formatDate pattern="yy/MM/dd hh:mm:ss" value="${o.createtime }"/></td>
			<td>￥ ${o.price }</td>
			<td>
			    <c:if test="${o.state == 0}">
			    	未付款
			    </c:if>
			    <c:if test="${o.state == 1}">
			    	正在处理
			    </c:if>
			    <c:if test="${o.state == 2}">
			    	已付款
			    </c:if>
			    <c:if test="${o.state == 3}">
			    	已发货
			    </c:if>
			    <c:if test="${o.state == 4}">
			    	完成
			    </c:if>
			</td>
			<td>
				<a href="${contextPath }/shoppingCart/showOrder.do?id=${o.id}">查看详情</a>
			</td>
		</tr>
	</c:forEach>
</table>
</c:if>